package com.itheima.io2.serializable;

import java.io.*;

/**
 * @author Anomaly
 * @date 2023/2/9 23:44
 */
public class ObjectInputStreamDemo {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        ObjectInputStream ois = new ObjectInputStream(new FileInputStream("file-io/src/stu.txt"));
        Object o = ois.readObject();
        System.out.println(o);
        ois.close();
    }
}
